package com.qf;


import cn.hutool.core.io.file.FileReader;

import java.util.List;
import java.util.Random;

public class Main {
    public static void main(String[] args) {
        FileReader fileReader = new FileReader("D:\\00qd-2304\\names.txt");
        List<String> nameList = fileReader.readLines();
//        for (String s : nameList) {
//            System.out.println(s);
//        }
        Random random = new Random();
        int index = random.nextInt(nameList.size());
        System.out.println(nameList.get(index));
    }
}